<template>
	<view><web-view :webview-styles="webviewStyles" :src="url"></web-view></view>
</template>

<script>
export default {
	data() {
		return {
			webviewStyles: {
				progress: {
					color: '#F53D46'
				}
			},
			url: ''
		};
	},
	onLoad: function(option) {
		if (option.url) {
			const url = JSON.parse(decodeURIComponent(option.url));
			this.url = url;
		}
	}
};
</script>

<style></style>
